String clazzTpl({package}) => """
import 'user/user_state.dart';
import 'theme/theme_state.dart';
import 'package:observable_builder/observable_builder.dart';

abstract class AppState {
  /// ************建议统一定义管理************
  /// 支持缓存的方式
  static final observableUser = Observable(UserState.initialState(),
      cacheKey: 'UserState_cache_key', decoder: UserState.fromJson);

  /// 不支持缓存的方式
  static final observableTheme = Observable(ThemeState());
}
""";
